//
//  DatePickerView.h
//  SanYiTeaching
//
//  Created by 李文强 on 2019/5/24.
//  Copyright © 2019 SanYi. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef void(^DatePickerViewBlcok)(NSString *dateString);

@interface DatePickerView : UIViewController
//创建对象
@property (nonatomic, strong) UIDatePicker *datePicker;
//标题
@property (nonatomic, strong) UILabel *mainTitle;
/**
 选择的时间
 */
@property (nonatomic, strong) NSString *dateString;
/**
 baseView
 */
@property (nonatomic, strong) UIView *baseView;
/**
 Block
 */
@property (nonatomic, strong) DatePickerViewBlcok mainBlock;

/**
 确定按钮
 */
@property (nonatomic, strong) UIButton *confirButton;
+ (void)setDatePickerViewWithFrame:(CGRect )rect andTitle:(NSString *)title andSuccessBlock:(DatePickerViewBlcok )block;
- (instancetype)initWithFrame:(CGRect )rect andTitle:(NSString *)title andBlock:(DatePickerViewBlcok )blcok;
@end

NS_ASSUME_NONNULL_END
